<%@ page language="java" pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<html:form action="/registrarAnalista" method="post">
<h2><bean:write name="registrarAnalistaForm" property="titulo"/></h2>

<html:hidden property="idDatos"/>
<html:hidden property="busquedaMunicipios"/>
<fieldset><legend>Datos Generales</legend>
	<table width="100%">
		<tr height="7px"></tr>
		<tr>
			<td class="colIzq">
				<label>*Nombres: </label>
			</td>
			<td class="colDer">
				<html:text property="nombre" size="29" maxlength="45"/>
				<br/><span class="error"><html:errors property="errNombre"/></span>
			</td>
			<td class="colIzq">
				<label>*Apellido Paterno: </label>
			</td>
			<td class="colDer">
				<html:text property="aPaterno" maxlength="45"/>
				<br/><span class="error"><html:errors property="errPaterno"/></span>
			</td>
			
		</tr>
		<tr>
			<td class="colIzq">
				<label>*Apellido Materno: </label>
			</td>
			<td class="colDer">
				<html:text property="aMaterno" maxlength="45"/>
				<br/><span class="error"><html:errors property="errMaterno"/></span>
			</td>
			<td class="colIzq">
				<label>RFC:</label>
			</td>
			<td class="colDer">
				<html:text property="rfc" maxlength="45"></html:text>
			</td>
		</tr>
		<tr>
			<td class="colIzq">
				<label for="txt_tel1">*Tel&eacute;fono 1: </label>
			</td>
			<td class="colDer">
				<html:text property="telefono1" maxlength="20" style="width:50%;" />
					<label for="ext1">ext: </label>
					<html:text property="extension1" maxlength="10" size="2" />
					<br/><span class="error"><html:errors property="errTel1"/></span>
			</td>
			<td class="colIzq">
				<label for="txt_correo">*Correo 1: </label>
			</td>
			<td class="colDer">
				<html:text styleClass="min" property="correo1" maxlength="45"/>
				<br/><span class="error"><html:errors property="errCorreo1"/></span>
			</td>
		</tr>
		<tr>
			<td class="colIzq">
				<label for="txt_tel2">Tel&eacute;fono 2: </label>
			</td>
			<td class="colDer">
				<html:text property="telefono2" maxlength="20" style="width:50%;" />
					<label for="ext2">ext: </label>
					<html:text property="extension2" maxlength="10" size="2" />
					<br/><span class="error"><html:errors property="errTel2"/></span>
			</td>
			<td class="colIzq">
				<label for="txt_correo">Correo 2: </label>
			</td>
			<td class="colDer">
				<html:text styleClass="min" property="correo2" maxlength="45"/>
				<br/><span class="error"><html:errors property="errCorreo2"/></span>
			</td>
		</tr>
		<tr>
			<td class="colIzq">
				<label for="txt_radio">Radio: </label>
			</td>
			<td class="colDer">
				<html:text property="radio" maxlength="45"/>
			</td>
		</tr>
		
		
		
		
		<tr>
			<td class="colIzq" valign="top">
				<label for="txt_obs">Observaciones: </label>
			</td>
			<td class="colDer" colspan="3">
				<html:textarea property="observaciones" rows="3" />
			</td>
		</tr>
		<tr height="7px"></tr>
	</table>
</fieldset>
<br/>
<fieldset><legend>Direcci&oacute;n</legend>
	<table width="100%">
		<tr height="7px"></tr>
		<tr>
			<td class="colIzq">
				<label>Direcci&oacute;n:</label>
			</td>
			<td class="colDer">
				<html:text property="direccion" size="35" maxlength="200"></html:text>
			</td>
			<td class="colIzq">
				<label>Estado:</label>
			</td>
			<td class="colDer">
				<html:select property="estados" onchange="obtenerMunicipiosAltaAnalistas();">
					<html:option value="0">Seleccione una opci&oacute;n</html:option>
					<html:optionsCollection name="estados" label="nombre" value="id" />
				</html:select>
			</td>
		</tr>
		<tr>
			<td class="colIzq">
				<label>Municipio:</label>
			</td>
			<td class="colDer">
				<html:select property="municipios">
					<html:option value="0">Seleccione una opci&oacute;n</html:option>
					<html:optionsCollection name="municipios" label="nombre" value="id" />
				</html:select>
			</td>
			<td class="colIzq">
				<label>Colonia:</label>
			</td>
			<td class="colDer">
				<html:text property="localidad" maxlength="45"></html:text>
			</td>
		</tr>
		<tr>
			<td class="colIzq">
				<label>C&oacute;digo postal</label>
			</td>
			<td class="colDer">
				<html:text property="codPostal" maxlength="45"></html:text>
			</td>
		</tr>
		<tr height="7px"></tr>
	</table>
</fieldset>

<br/>
<div align="center">
 	<html:submit property="boton"><bean:write name="registrarAnalistaForm" property="boton"/></html:submit>
	<html:submit value="CANCELAR" property="boton"/>
</div>
</html:form>